<?php

namespace App\Http\Requests;


class SysNoticeRequest extends BaseRequest
{
    public function rules()
    {
        return [
            'notice_title' => 'required|between:1,50',
            'notice_type' => 'required',
            'notice_content' => 'required',
            'status' => 'required',

        ];
    }

    public function messages()
    {
        return [
            'notice_title.required' => '公告标题必须填写',
            'notice_title.between' => '参数名称1-50个字符之间',
            'notice_type.required' => '公告类型必须选择',
            'notice_content.required' => '公告内容必须填写',
            'status.unique' => '请选择公告状态',
        ];
    }
}
